package com.mkydy.service.impl;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mkydy.dao.DeptDao;
import com.mkydy.entity.Dept;
import com.mkydy.service.DeptService;
@Service("deptService")
public class DeptServiceImpl implements DeptService {

	private DeptDao dao;
	
	@Override
	@Transactional
	public void addDept(Dept dept) {
		dao.addDept(dept);
	}

	public DeptDao getDao() {
		return dao;
	}

	public void setDao(DeptDao dao) {
		this.dao = dao;
	}
	
}
